﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler;
using Module_Persistence;
using Module_Basic_Entities;

namespace ContentPipelineExtension_MapFromMappy
    {
        class BLKSTRCustomContentTypeWriter : ContentTypeWriter
        {
            public BLKSTRCustomContentTypeWriter(Type targetType)
                : base(targetType)
            {

            }

            public override string GetRuntimeReader(Microsoft.Xna.Framework.TargetPlatform targetPlatform)
            {
                return "ContentPipelineExtension_MapFromMappy.Mappy.BLKSTR, ContentPipelineExtension_MapFromMappy";
            }

            protected override void Write(ContentWriter output, object value)
            {
                if (value == null)
                {
                    throw new Exception("Null Exception");
                }

                BLKSTR informations = (BLKSTR)value;

                output.Write(informations.User1);
                output.Write(informations.User2);
                output.Write(informations.User3);
                output.Write(informations.User4);
                output.Write(informations.User5);
                output.Write(informations.User6);
                output.Write(informations.User7);
            }
        }
    }
